package main

import (
	"log"
	"net/http"
	"tsugi/objects"
	"tsugi/server"
)

func main() {

	go server.StartHeartBeat()
	go server.StartLocate()
	http.HandleFunc("/objects/", objects.Handler)
	log.Fatal(http.ListenAndServe("localhost:9001", nil))
	//root := conf.StorageRoot()
	//fmt.Printf("%+v", root.Server.Dir)
}
